package com.zxy;

public class demo02 {
    public static void main(String[] args) {
        String s = "afjoafjDLFJSDKFA@@$123456@";
        int count1 = 0;//小写
        int count2 = 0;//大写
        int count3 = 0;//数字
        char[] arr = s.toCharArray();
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] >= 'a' && arr[i] <= 'z') {
                System.out.println(arr[i]);
                ;//小写加一
            }
        }
        String phone = "123456789";
        String begin = phone.substring(0, 3);
        String end = phone.substring(5);
        System.out.println(begin + "*" + end);
    }
}
